package com.miracle.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.miracle.blog.dto.ArticleBackDTO;
import com.miracle.blog.dto.ArticleHomeDTO;
import com.miracle.blog.dto.ArticlePreviewListDTO;
import com.miracle.blog.entity.Article;
import com.miracle.blog.vo.ArticleVO;
import com.miracle.blog.vo.ConditionVO;
import com.miracle.blog.vo.DeleteVO;
import com.miracle.blog.vo.PageResult;

import java.util.List;

public interface ArticleService extends IService<Article> {
    /**
     * 添加或修改文章
     * */
    void saveOrUpdateArticle(ArticleVO articleVO);

    PageResult<ArticleBackDTO> listArticleBacks(ConditionVO conditionVO);

    void updateArticleDelete(DeleteVO deleteVO);

    void deleteArticles(List<Integer> articleIdList);

    List<ArticleHomeDTO> listArticles(Long current);

    ArticlePreviewListDTO listArticlesByCondition(ConditionVO condition);
}
